import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "dataregister" })
export class DataRegister extends EntityObjectType<DataRegister>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    objectType: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    objectId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    dataType: string;

    @Define.Column({
        DataType: Define.DataType.JSON,
    })
    data: any;
}